package com.kaoshi.myweb.webstruts.controller;

import com.kaoshi.myweb.webstruts.model.Product;
import com.opensymphony.xwork2.ActionSupport;

public class ProductConfirm extends ActionSupport {
	
	private java.util.List<Product> products;
	
	
 public String execute() {
	 for (Product product : products) {
		System.out.println(product.getName() + ":" + product.getPrice() + ":" + product.getDateOfProduction());
	}
	return SUCCESS;
}

public java.util.List<Product> getProducts() {
	return products;
}

public void setProducts(java.util.List<Product> products) {
	this.products = products;
}
}
